package com.aaa.inbound.mapper;

import com.aaa.entity.inbound.Purchase;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import org.apache.ibatis.annotations.Select;

import java.util.List;
import java.util.Map;

/**
 * <p>
 *  Mapper 接口
 * </p>
 *
 * @author aaa
 * @since 2020-11-25
 */
public interface PurchaseMapper extends BaseMapper<Purchase> {

    @Select("SELECT id,name FROM b_supplier where warehouseid=#{warehouseid}")
    List<Map> findSupplier(Long warehouseid);

}
